﻿<Window x:Class="Remember.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        Title="Remember" Height="380" Width="600" ResizeMode="NoResize" Icon="/Icons/main.ico">
    <Grid>
        <!-- Taskbar icon -->
        <tb:TaskbarIcon x:Name="TrayIcon"
            IconSource="/Icons/main.ico"
            DataContext="{Binding TrayManager}"
            ToolTipText="{Binding TrayText}"/>
        <!-- Upcoming notes display grid-->
        <DataGrid Name="Upcoming" AutoGenerateColumns="False"
                  HorizontalAlignment="Left" 
                  Margin="10,10,0,0" 
                  VerticalAlignment="Top" 
                  Height="121" Width="276"
                  ItemsSource="{Binding UpcomingNotes}"
                  SelectedItem="{Binding SelectedUpcomingNote}">
            <!-- Column options -->
            <DataGrid.Columns>
                <DataGridTextColumn Header="Title" 
                                    Binding="{Binding Title}" 
                                    Width="*"/>
                <DataGridTextColumn Header="Expiry Date" 
                                    Binding="{Binding ExpiryDate.Value}" 
                                    Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
        <!-- Passed notes display grid -->
        <DataGrid Name="Passed" AutoGenerateColumns="False"
                  HorizontalAlignment="Left" 
                  Margin="10,149,0,0" 
                  VerticalAlignment="Top" 
                  Height="112" Width="276"
                  ItemsSource="{Binding PassedNotes}"
                  SelectedItem="{Binding SelectedPassedNote}">
            <!-- Column options -->
            <DataGrid.Columns>
                <DataGridTextColumn Header="Title" 
                                    Binding="{Binding Title}" 
                                    Width="*"/>
                <DataGridTextColumn Header="Expiry Date" 
                                    Binding="{Binding ExpiryDate.Value}" 
                                    Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
        <!-- For display of selected upcoming note's text -->
        <TextBlock Name="UpcomingText" 
                   Text="{Binding SelectedUpcomingNote.Text}" 
                   HorizontalAlignment="Left" 
                   Margin="291,10,0,0" 
                   TextWrapping="Wrap" 
                   VerticalAlignment="Top" 
                   Height="121" Width="292"/>
        <!-- For display of selected passed note's text -->
        <TextBlock Name="PassedText" 
                   Text="{Binding SelectedPassedNote.Text}" 
                   HorizontalAlignment="Left" 
                   Margin="291,149,0,0" 
                   TextWrapping="Wrap" 
                   VerticalAlignment="Top" 
                   Height="112" Width="292"/>
        <!-- Opens AddNoteWindow -->
        <Button Content="Add Note" 
                Command="{Binding Commands.OpenAddNoteWindow}" 
                HorizontalAlignment="Left" 
                Margin="10,311,0,0" 
                VerticalAlignment="Top" 
                Width="103" Height="27"/>
    </Grid>
</Window>
